﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Announcement/Announcement.master" AutoEventWireup="true" CodeBehind="AnnouncementForm.aspx.cs" Inherits="HRdex_Final.Announcement.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div>

                           <table>
                           <tr hidden="hidden">
                                <td style="width: 136px">
                                Announcement No.
                                </td>
                                <td style="width: 368px">
                                    <asp:TextBox ID="txtAnnouncementID" runat="server" 
                                        Width="300px" Visible="False"></asp:TextBox>
                                </td>
                           </tr>
                           <tr>
            <td id="Title4" style="width: 136px; text-align: left;">
                Subject</td>
            <td id="txtTitle4" style="width: 368px">
                <asp:TextBox ID="txtSubject" runat="server" Width="300px" 
                   ></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtSubject" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            </tr>
            <tr>
            <td id="AnnouncementBody" style="width: 136px; text-align: left;">
                
                    Description
            </td>
            <td id="txtBody" style="width: 368px">
               
                <asp:TextBox ID="txtDescription" runat="server" Height="87px" 
                    TextMode="MultiLine" Width="299px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtDescription" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td id="category" style="width: 136px">
                Caregories
            </td>
            <td id="CBcategory" style="width: 368px">
                <asp:DropDownList ID="ddlCategories" runat="server" 
                    DataSourceID="catAnnouncement" DataTextField="CatName" 
                    DataValueField="CatAnnID" Height="16px" Width="308px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="ddlCategories" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:SqlDataSource ID="catAnnouncement" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT [CatAnnID], [CatName] FROM [catAnnouncement]">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td style="width: 136px; height: 26px;">
                Attachment           
            </td>
            <td style="height: 26px; width: 368px;">    
                <asp:FileUpload ID="fuAttachment" runat="server" Width="219px" Height="21px" />
               
                <asp:Button ID="btnDownload" runat="server" 
                    Text="Download" onclick="btnDownload_Click" />

            </td>
            </tr>
                               <tr>
                                   <td style="width: 136px; height: 26px;">
                                       &nbsp;</td>
                                   <td style="height: 26px; width: 368px;">
                                       <asp:Label ID="lblPubDate" runat="server" style="text-align: right"></asp:Label>
                                   </td>
                               </tr>
                               <tr style="text-align: left">
                                   <td style="height: 26px;" colspan="2">
                                       <asp:Panel ID="Panel1" runat="server">
                                           <asp:Label ID="lblConfirmation" runat="server" style="text-align: left" 
                                               Font-Italic="True" ForeColor="#3333FF"></asp:Label>
                                       </asp:Panel>
                                   </td>
                               </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnSubmit" runat="server" Text="Save" onclick="txtSubmit_Click" 
                    Width="50px" />

                 <asp:Button ID="btnEdt" runat="server" Text="Edit" Width="50px" 
                            onclick="btnEdit_Click"  />
       
            </td>
        </tr>                           
            </td>
       </tr>
 
    </table>
</div>


</asp:Content>
